<?php

namespace App\Http\Controllers\Backend;


use App\Models\Topic;

class SelectorController extends BaseController
{
    // 话题
    public function initialize()
    {
        parent::initialize();
    }

    // 下拉框的选择
    public function topic()
    {
        $page    = $this->page;
        $rows    = $this->rows;
        $topicDb = new Topic();
        $where   = ['verify' => 1];
        // 模型 和 查询
        if($where){
            $result = $topicDb->listPage($where, $page, $rows, "id DESC");
        } else{
            $result = $topicDb->isCache(true)->listPage($where, $page, $rows, "id DESC");
        }

        return $this->success($result);
    }

    // 用户


}


